﻿@model HanGu.Entity.VBemaLecturerInfo
@{
    ViewBag.Title = Model.Title + " ——精彩回顾";
    Layout = "~/Views/Shared/Main.cshtml";
    TempData["sidecalss"] = "EveryDayWisdom";
    var SearchParma = ViewData["SearchParma"] as HanGu.Entity.UniversallySearchParam ?? new HanGu.Entity.UniversallySearchParam();
    var BemaCatalog = ViewData["BemaCatalog"] as SelectList;
    var Catalogs = (Model.Catalog ?? "").Split(',');  
    //var RelativeRosTrum = ViewData["RelativeRostrum"] as List<HanGu.Entity.VBemaLecturerInfo>;
    //int i = 1;

}
@section Header
{
    <style>
        a
        { color:#fff;}
        #partContent
        {
            width: 100%;
        }
        #content
        {
            width: 780px;
        }
        .movieContain
        {
            width: 100%;
            margin-top: 5px;
        }
        .ContentTitleRight
        {
            width: 300px;
        }
        .RostrumDetail li
        {
            line-height: 20px;
        }
    </style>
}
@section Banner
{
    @Html.Partial("Banner")
}
@section Content{
    <form id="RostrumspagerForm" method="post" action="/rostrum/list">
    <input type="hidden" name="pageNum" value="@SearchParma.Pagination.CurrentIndex" />
    <input type="hidden" name="PageTotal" value="@SearchParma.Pagination.PageTotal" />
    <input type="hidden" name="RowCount" value="@SearchParma.Pagination.RowCount" />
    <input type="hidden" name="orderField" value="${param.orderField}" />
    <input type="hidden" name="Title" value="@SearchParma.Ttile" />
    <input type="hidden" name="StarTime" value="@SearchParma.StarDateTime" />
    <input type="hidden" name="EndTime" value="@SearchParma.EndDateTime" />
    </form>
    <div class="contentLeft" style="width: 100%;">
        <table cellpadding="0" cellspacing="0" id="partContent">
            <tr>
                <td>
                    <div class="ContentTitle">
                        <div class="ContentTitleLeft">
                            <img src="/Content/images/rostrumTitle.gif" width="145" height="26" alt=""></div>
                        <div class="ContentTitleRight" style="padding-top: 0px">
                            <input type="text" name="key" class="textInput focus" value="@SearchParma.Ttile" />
                            <input type="button" class="buttonContent" value="搜索" onclick="Search()" />
                            <script>
                                function Search() {
                                    var pageform = $('#@ViewData["pageform"]');
                                    var keyVal = $("input[name='key']").val();
                                    $("input[name='Title']", pageform).val(keyVal);
                                    $("input[name='pageNum']", pageform).val(1);
                                    pageform.submit();

                                }
                            </script>
                        </div>
                    </div>
                </td>
            </tr>
            <tr>
                <td class="content">
                    <div class="Educationlist">
                        <div class="contentLeft" style="width: 500px;">
                            <div id="movie">
                                <object id="player" height="360px" width="100%" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
                                    <param name="AutoStart" value="-1">
                                    <!--是否自动播放-->
                                    <param name="Balance" value="0">
                                    <!--调整左右声道平衡,同上面旧播放器代码-->
                                    <param name="enabled" value="-1">
                                    <!--播放器是否可人为控制-->
                                    <param name="EnableContextMenu" value="-1">
                                    <!--是否启用上下文菜单-->
                                    <param name="url" value="/Play/index/@HanGu.Common.RijndaelSecurity.EncryptDES(Model.PlayURL)">
                                    <!--播放的文件地址-->
                                    <param name="PlayCount" value="1">
                                    <!--播放次数控制,为整数-->
                                    <param name="rate" value="1">
                                    <!--播放速率控制,1为正常,允许小数,1.0-2.0-->
                                    <param name="currentPosition" value="0">
                                    <!--控件设置:当前位置-->
                                    <param name="currentMarker" value="0">
                                    <!--控件设置:当前标记-->
                                    <param name="defaultFrame" value="">
                                    <!--显示默认框架-->
                                    <param name="invokeURLs" value="0">
                                    <!--脚本命令设置:是否调用URL-->
                                    <param name="baseURL" value="">
                                    <!--脚本命令设置:被调用的URL-->
                                    <param name="stretchToFit" value="0">
                                    <!--是否按比例伸展-->
                                    <param name="volume" value="50">
                                    <!--默认声音大小0%-100%,50则为50%-->
                                    <param name="mute" value="0">
                                    <!--是否静音-->
                                    <param name="uiMode" value="mini">
                                    <!--播放器显示模式:Full显示全部;mini最简化;None不显示播放控制,只显示视频窗口;invisible全部不显示-->
                                    <param name="windowlessVideo" value="0">
                                    <!--如果是0可以允许全屏,否则只能在窗口中查看-->
                                    <param name="fullScreen" value="0">
                                    <!--开始播放是否自动全屏-->
                                    <param name="enableErrorDialogs" value="-1">
                                    <!--是否启用错误提示报告-->
                                    <param name="SAMIStyle" value>
                                    <!--SAMI样式-->
                                    <param name="SAMILang" value>
                                    <!--SAMI语言-->
                                    <param name="SAMIFilename" value>
                                    <!--字幕ID-->
                                </object>
                            </div>
                        </div>
                        <div class="contentRight" style="width: 200px; height: 350px; background: #999; padding: 10px;
                            color: #fff">
                            <div style="margin-bottom: 10px;">
                                <b>讲坛信息</b></div>
                            <div>
                                <ul>
                                    <li>讲师：
                                    @if (Model != null && !string.IsNullOrEmpty(Model.LecturerID) && !string.IsNullOrEmpty(Model.LecturerName))
                                    {
                                        string[] lecturerids = Model.LecturerID.Split(',');
                                        string[] lecturerNames = Model.LecturerName.Split(',');
                                        if (lecturerids != null && lecturerNames != null && lecturerids.Length == lecturerNames.Length)
                                        {
                                            for (int i = 0; i < lecturerids.Length; i++)
                                            {
                                                <a href="/Lecturers/detail/@lecturerids[i]">@lecturerNames[i]</a>
                                            }
                                        }
                                    }
                                    
                                    </li>
                                    <li>主题：@Model.Title</li>
                                    <li>类型：
                                    @foreach (var item in Catalogs)
                                    {
                                               var tempCata = BemaCatalog.SingleOrDefault(c => c.Value == item);
                                               if (tempCata != null)
                                               {
                                <span style=" margin-right:10px">@tempCata.Text</span>
                                     }
                                           }</li>
                                    <li>时间：<span formatdate="yyyy-MM-dd hh:mm">@Model.PlayTime</span></li>
                                    <li>地点：@Model.PlayAddress</li>
                                    <li>点击数：<span style="color: Red">@Model.Clicks</span></li>
                                </ul>
                            </div>
                            
                        </div>
                    </div>
                    <div class="clear" />
                    <div class="wonderfulstory">
                        <table cellpadding="0" cellspacing="0" id="partContent">
                            <tr>
                                <td style="vertical-align: bottom; padding-top: 5px">
                                    <div>
                                        <div class="ContentTitleLeft" style="padding-top: 20px">
                                            <img src="/Content/images/rostrumdetail.gif" alt=""></div>
                                        <div class="ContentTitleRight" style="width: 80px; margin-right: 20px; padding-top: 20px">
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="content" style="padding-left: 0px; padding-right: 0px;">
                                    <table id="__01" width="100%" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td class="BorderTopLeft">
                                            </td>
                                            <td class="BorderTopMiddle">
                                            </td>
                                            <td class="BorderTopRight">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="BorderMiddleLeft">
                                            </td>
                                            <td>
                                                <!--Content_S-->
                                                <div>
                                                    @Hangu.WebClient.MyHtmlHelper.FormatHtml(Model.Remark)
                                                </div>
                                                <!--Content_E-->
                                            </td>
                                            <td class="BorderMiddleRight">
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="BorderBottomLeft">
                                            </td>
                                            <td class="BorderBottomMiddle">
                                            </td>
                                            <td class="BorderBottomRight">
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
            </tr>
        </table>
    </div>
}
@section Side{
    @Html.Partial("Side")
}
